package groupon.contents.model;

import groupon.commom.model.StatefulEntity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import org.hibernate.annotations.Parameter;
import org.springframework.web.bind.annotation.ModelAttribute;

@Entity
@Table(name ="groupon_contenttype")
public class ContentType extends StatefulEntity{
	
	private static final long serialVersionUID = 1L;
	public static final String PROP_NAME = "name";

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	private int id;
	
	@Column(name = "name")
	private String name;

	@Column(name = "data")
	private String data;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}
	
	
}
